package com.ytf.test.tenth;

/**
 * @author: YTF
 * @date: 2025/2/20 15:46
 * @version: 1.0
 * @description:
 */
public class Parcel1 {
    class Contents{
        private int i =11;
        public int value(){
            return i;
        }
    }
    class Destination{
        private String label;

        public Destination(String label) {
            this.label = label;
        }
        String readLabel(){
            return label;
        }
    }

    public static void main(String[] args) {
        Parcel1 parcel1 = new Parcel1();
        parcel1.ship("Tasmania");
    }

    private void ship(String dest) {
        Contents contents = new Contents();
        Destination destination = new Destination(dest);
        System.out.println(destination.readLabel());
    }
}
